<?php
require_once(dirname(__FILE__).'/Feed.php');
require_once(dirname(__FILE__).'/IFeed.class.php');
require_once(dirname(__FILE__).'/Atom.class.php');
/**
 * Provide a Instance of an object to parse
 * the correct feed
 *
 * @author agustin
 */
class FeedFactory {

    static public function getParser($type){
        switch ($type){
            case 'atom':
                return new Atom();
                break;
            default:
                throw new Exception('Bad Parser Class');
        }
    }
}
?>
